package com.metaverse.backend.domain;

import com.metaverse.backend.converter.StringArrayConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import java.util.List;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
public class PrivilegeOption extends BaseEntity {

    private String name;

    private String description;

    private String type;

    @Convert(converter = StringArrayConverter.class)
    @Column(columnDefinition = "TEXT")
    private List<String> icon;

    private boolean once;

    private boolean refreshOnTransfer;

}
